package cat.joronya.supermanager.privateleague;

import cat.joronya.supermanager.team.Team;

import java.io.IOException;
import java.io.Serializable;
import java.util.HashMap;

public class PrivateLeague implements Serializable
{
	private static final long serialVersionUID = 8388453580547123111L;
	
	public String id;
	public String name;
	public String numberOfTeams;
	public HashMap<String,Team> teams;

	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getNumberOfTeams() {
		return numberOfTeams;
	}
	
	public void setNumberOfTeams(String numberOfTeams) {
		this.numberOfTeams = numberOfTeams;
	}
	

	public void setTeams(HashMap<String,Team> teams) {
		this.teams = teams;
	}

	public HashMap<String,Team> getTeams() {
		return teams;
	}

	private void readObject(java.io.ObjectInputStream stream)
    	throws IOException, ClassNotFoundException
    {
		//always perform the default de-serialization first
		stream.defaultReadObject();
    }

	private void writeObject(java.io.ObjectOutputStream stream)
    	throws IOException
    {
		//perform the default serialization for all non-transient, non-static fields
		stream.defaultWriteObject();
    }
}
